/***************************************************************
|	File:		DestroyEntityMessage.cpp
|	Author:		Zachary Murray
|	Course:		1401
|	Purpose:	Source for DEM
***************************************************************/

#include "DestroyEntityMessage.h"
#include "MessageID.h"
#include "Entity.h"
#include <cassert>

DestroyEntityMessage::DestroyEntityMessage(Entity* e)
: Message(MessageID::MSG_DESTROY_ENTITY)
{

	assert(e != nullptr
		&& "DestoryEntityMessage - parameter cannot be null");

	entity = e;
	entity->AddRef();
}


DestroyEntityMessage::~DestroyEntityMessage()
{
	entity->Release();
	entity = nullptr;
}
